<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
          overflow: hidden;
        }
        ul{
            margin: 0;
            padding: 0;
           
            
        }

        .box li{
            float: left;
            margin-left: 2px;
            list-style: none;
            width: 25px;
            height: 30px;
            line-height: 30px;
            text-align: center;
            border: 1px solid orange;
            
            transition: all 0.7s;
            overflow: hidden;
        }
        li:hover{
            transform: scale(1.2);
        }
    </style>
</head>
<body>
    <div class="box">
        <ul>
            <li>1</li>
            <li>1</li>
            <li>1</li>
            <li>1</li>
            <li>1</li>
            <li>1</li>
            <li>1</li>
        </ul>
    </div>
</body>
</html>